<%-- 
    Document   : post
    Created on : Nov 16, 2014, 1:06:10 AM
    Author     : Hai
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <%@include file="/configDefaultHead.jsp" %>
        <script src="/tools/ckeditor/ckeditor.js" type="text/javascript"></script>
        <link href="/config/bootstrapLib/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <title>JSP Page</title>
              <style>

            .myContainer{
                border: 0px;
                width: 80%;
                margin: auto;
                opacity: 1;
                padding: 0px;
            }
            .myContainer:hover{
                opacity: 1;
            }
            .input-group-addon{
                color: green;
            }
        </style>
    </head>
    <body>
        <h1 class="myTitle">Chuyến đi</h1>
        <div class="myContainer">

            <div class="input-group">
                <span class="input-group-addon">Tiêu đề</span>
                <input type="text" class="form-control" placeholder="Tiêu đề bài viết" name="title">
            </div>

            <div class="">
                <textarea name="txtnoidung" id="txtnoidung" rows="10" cols="40" placeholder="Nội dung"></textarea>

                <span class="input-group-addon"><button class="btn btn-success" id="post">Post</button>
                    <button class="btn btn-danger" onclick="history.back(-1)">Back</button></span>

            </div>
            <script type="text/javascript" language="javascript">
                CKEDITOR.replace('txtnoidung');
                
                $(document).ready(function (){
                    $("#post").click(function(){
                        history.back(-1);
                    });
                });
            </script>
        </div>
    </body>
</html>
